﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OverseasRemittanceInfo.aspx.cs" Inherits="YhmOA.PrintDoc.Bank.OverseasRemittanceInfo" %>

<%@ Register Assembly="YhmOASelectBox" Namespace="YhmOA.SelectBox" TagPrefix="YhmOA" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>境外汇款申请书</title>
    <link type="text/css" rel="Stylesheet" href="../../Styles/Common.css" />
    <link type="text/css" rel="Stylesheet" href="../../Scripts/data/jquery-ui-1.8.2.custom.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="../../Scripts/data/jquery-ui-1.8.2.custom.min.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript">
        function TransferProperties() {
            var txt = $("#txt_TransferProperties").val();
            if (txt == "对公") {
                $("#tr_TransferProperties_对私").hide();
            }
            else {
                $("#tr_TransferProperties_对私").show();
            }
            PageReSize();
        }
        $(function () {
            //对公对私的交替显示
            TransferProperties();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:TextBox ID="txt_GUID" runat="server" style="display:none;"></asp:TextBox>
    <table class="Table" style="width:840px;">
        <tr>
            <td width="120px;">电汇日期</td>
            <td width="300px;"><asp:TextBox ID="txt_Data" CssClass="DateBox" ISEmpty="true" ISEmptyAlt="电汇日期不能为空" runat="server"></asp:TextBox></td>
            <td width="120px;">币种</td>
            <td width="300px;"><YhmOA:SelectBox Width="250px" Height="20px" CssClass="TextBox"  ID="txt_CurrencyType" ISEmpty="true" ISEmptyAlt="币种不能为空" runat="server"></YhmOA:SelectBox></td>
        </tr>
        <tr>
            <td>发电类型</td>
            <td>
            <YhmOA:SelectBox Width="250px" Height="20px" CssClass="TextBox" ID="txt_PowerType" ISEmpty="true" ISEmptyAlt="发电类型不能为空" runat="server"></YhmOA:SelectBox>
            </td>
            <td>发电等级</td>
            <td><YhmOA:SelectBox Width="250px" Height="20px" CssClass="TextBox" ID="txt_PowerRating" ISEmptyAlt="发电等级不能为空" runat="server"></YhmOA:SelectBox></td>
        </tr>
        <tr style="height:60px;">
            <td>金额</td>
            <td><asp:TextBox ID="txt_LowerAmount" notAjaxRender="notAjaxRender" onkeyup="MoneyToEn();" CssClass="Number" ISEmpty="true" ISEmptyAlt="金额不能为空" runat="server"></asp:TextBox></td>
            <td colspan="2"><asp:TextBox style="width:370px;height:50px;" ReadOnly="true" ID="txt_CapitalAmountEn" TextMode="MultiLine" CssClass="TextBox" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>汇款人名称</td>
            <td>
                <asp:DropDownList ID="txt_SenderName" CssClass="DropDownList" runat="server">
                    <asp:ListItem Value="元亨机械服务（郑州）有限公司" Text="元亨机械服务（郑州）有限公司"></asp:ListItem>
                    <asp:ListItem Value="河南经贸国际运输有限公司" Text="河南经贸国际运输有限公司"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>汇款人账号</td>
            <td><asp:TextBox ID="txt_SenderID" CssClass="SelectDialog" ISEmpty="true" ISEmptyAlt="汇款人账号不能为空"  ondblclick="DialogInfo('/Commons/SelectItem.aspx?data=唯一标识&call=chulifanhuizhi','选择付款人账号',700,400,30);" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>汇款人英文名称</td>
            <td><asp:TextBox ID="txt_SenderNameEN" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="汇款人英文名称不能为空" runat="server"></asp:TextBox></td>
            <td>汇款人英文地址</td>
            <td><asp:TextBox ID="txt_SenderAddressEN" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="汇款人英文地址不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>组织机构代码</td>
            <td><asp:TextBox ID="txt_SenderOrganizationCode" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="汇款人组织机构代码不能为空" runat="server"></asp:TextBox></td>
            <td>海关注册号</td>
            <td><asp:TextBox ID="txt_SenderCustomsRegistrationNumber" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="汇款人海关注册号不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>汇款性质</td>
            <td>
                 <asp:DropDownList ID="txt_TransferProperties" CssClass="DropDownList" onchange="TransferProperties();" runat="server" >
                    <asp:ListItem Value="对公" Text="对公"></asp:ListItem>
                    <asp:ListItem Value="对私" Text="对私"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td></td>
            <td></td>
        </tr>
        <tr id="tr_TransferProperties_对私">
            <td>对私类型</td>
            <td>
                <asp:DropDownList ID="txt_PrivateType" CssClass="DropDownList" runat="server">
                    <asp:ListItem Value="中国居民个人" Text="中国居民个人"></asp:ListItem>
                    <asp:ListItem Value="中国非居民个人" Text="中国非居民个人"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>身份证件号码</td>
            <td><asp:TextBox ID="txt_PrivateID" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="证件号码不能为空" runat="server"></asp:TextBox></td>
        </tr>
        
        <tr>
            <td colspan="4">
                <table class="Table"style="width:835px;">
                    <tr>
                        <th colspan="4">收款人信息</th>
                    </tr>
                    <tr>
                        <td width="117px;">收款人名称</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeName" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人名称不能为空" runat="server"></asp:TextBox></td>
                        <td width="117px;">收款人地址</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeAddress" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人地址不能为空" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="117px;">代理行名称</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeCorrespondentBankName" CssClass="TextBox" runat="server"></asp:TextBox></td>
                        <td width="117px;">代理行地址</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeCorrespondentBankAddress" CssClass="TextBox" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="117px;">代理行账号</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeCorrespondentBankID" CssClass="TextBox" runat="server"></asp:TextBox></td>
                        <td width="117px;">账号</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeID" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人账号不能为空" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="117px;">开户行名称</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeBankName" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人开户行名称不能为空" runat="server"></asp:TextBox></td>
                        <td width="117px;">开户行地址</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeBankAddress" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人开户行地址不能为空" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td width="117px;">常驻国家</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeCountry" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人常驻国家不能为空" runat="server"></asp:TextBox></td>
                        <td width="117px;">国家代码</td>
                        <td width="300px;"><asp:TextBox ID="txt_PayeeCountryCode" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="收款人国家代码不能为空" runat="server"></asp:TextBox></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>费用承担</td>
            <td>
                <asp:DropDownList ID="txt_PoundageBy" CssClass="DropDownList" runat="server">
                    <asp:ListItem Text="汇款人" Value="汇款人"></asp:ListItem>
                    <asp:ListItem Text="收款人" Value="收款人"></asp:ListItem>
                    <asp:ListItem Text="共同" Value="共同"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>汇款附言</td>
            <td><asp:TextBox ID="txt_RemittanceMark" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="汇款附言不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>付款类型</td>
            <td>
                <asp:DropDownList ID="txt_PaymentType" CssClass="DropDownList" runat="server">
                    <asp:ListItem Text="预付货款" Value="预付货款"></asp:ListItem>
                    <asp:ListItem Text="货到付款" Value="货到付款"></asp:ListItem>
                    <asp:ListItem Text="退款" Value="退款"></asp:ListItem>
                    <asp:ListItem Text="其他" Value="其他"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>最迟装运期</td>
            <td><asp:TextBox ID="txt_LatestShipmentDate" CssClass="DateBox" ISEmpty="true" ISEmptyAlt="最迟装运期不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>交易编码</td>
            <td><asp:TextBox ID="txt_TransactionCode" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="交易编码不能为空" runat="server"></asp:TextBox></td>
            <td>交易附言</td>
            <td><asp:TextBox ID="txt_TransactionMark" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="交易附言不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>进口核销</td>
            <td>
                <asp:DropDownList ID="txt_ImportCancelAfterVerification" CssClass="DropDownList" runat="server">
                    <asp:ListItem Text="是" Value="是"></asp:ListItem>
                    <asp:ListItem Text="否" Value="否"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>合同号</td>
            <td><asp:TextBox ID="txt_ContractNo" CssClass="SelectDialog" ISEmpty="true" ISEmptyAlt="合同号不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <th colspan="4">报关单信息</th>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="gvShowBGD" CssClass="Table" EmptyDataText="暂无数据..." runat="server">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>预录入编码</HeaderTemplate>
                            <ItemTemplate>
                                <%# Eval("预录入编码") %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>可报关金额</HeaderTemplate>
                            <ItemTemplate><%# Eval("可报关金额") %></ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>本次报关金额</HeaderTemplate>
                            <ItemTemplate><%# Eval("本次报关金额") %></ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>申请人姓名</td>
            <td><asp:TextBox ID="txt_ApplicantName" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="申请人姓名不能为空" runat="server"></asp:TextBox></td>
            <td>申请人电话</td>
            <td><asp:TextBox ID="txt_ApplicantPhone" CssClass="TextBox" ISEmpty="true" ISEmptyAlt="申请人电话不能为空" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Button ID="btnSave" CssClass="Button" CommandName="1" runat="server" 
                    Text="添加" onclick="btnSave_Click"/></td>
        </tr>
    </table>
    <script type="text/javascript">
        function chulifanhuizhi(rs) {
            $("#txt_SenderID").val(rs);
        }
    </script>
    </form>
</body>
</html>
